package com.chenfan.mcn.model.vo;

import lombok.Data;

import java.util.List;

/**
 * @author wulg
 * @date 2023/9/27
 */
@Data
public class ExcutionOrderBatchSubmitVO {

    /**
     * 总数
     */
    private Integer totalNum;

    /**
     * 成功数
     */
    private Integer successNum;

    /**
     * 失败数
     */
    private Integer failNum;


    private List<FailReason> failReasonList;

    /**
     * 失败原因
     */
    @Data
    public static class FailReason {

        /**
         * 执行单Id
         */
        private Long id;

        /**
         * 执行单编号
         */
        private String excuteCode;

        /**
         * 失败原因
         */
        private String failReason;

        public FailReason(Long id, String excuteCode, String failReason) {
            this.id = id;
            this.excuteCode = excuteCode;
            this.failReason = failReason;
        }
    }
}
